package com.mc.sqlparamsetting.action;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IViewActionDelegate;
import org.eclipse.ui.IViewPart;

public class sqlParamSettingAction implements IViewActionDelegate{
	private IViewPart view; 
	public sqlParamSettingAction() {
	}

	@Override
	public void run(IAction action) {
		showMessage("点击了！！！");
	}

	@Override
	public void selectionChanged(IAction action, ISelection selection) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void init(IViewPart view) {
		this.view = view;
	}
	
	private void showMessage(String message) {
		MessageDialog.openInformation(
			view.getViewSite().getShell(),
			"sql拼接",
			message);
	}

}
